package com.yizhuoyan.his.webapi.controller.doctor.outpatient.vo;

import com.yizhuoyan.his.entity.HosDrugsEntity;
import lombok.Data;

/**
 * 药品
 * @author 徐世杰
 */
@Data
public class HosDrugsVo {
    //药品名称
    private String name;
    //药品单价
    private double price;

    public static HosDrugsVo of(HosDrugsEntity entity)throws Exception{
        HosDrugsVo vo=new HosDrugsVo();
        vo.setName(entity.getName());
        vo.setPrice(entity.getUnitPrice());
        return vo;
    }
}
